<include file="public:header"/>

<notempty name="setmeal">
    <div class="toptit">
        会员套餐设置 (用户名：<span style="color:#0066CC">{$company_user.username}</span>)
    </div>
    <div class="form_main width200">
        <form action="{:U('edit')}" method="post" name="EditForm" id="EditForm" >
            <div class="fl">套餐名称:</div>
            <div class="fr txt"><span style="color: #FF6600; font-size:16px;">{$setmeal.setmeal_name}</span></div>
            <div class="fl">服务时间:</div>
            <div class="fr txt">
                开始时间：{$setmeal.add_time|date="Y-m-d",###}，
                结束时间：<if condition="$setmeal['end_time'] eq '0'">无限制<else />{$setmeal.end_time|date="Y-m-d",###}</if>
                <input type="hidden" readonly  name="oldendtime"  value="{$setmeal.endtime}" />
            </div>
            <div class="fl">到期时间:</div>
            <div class="fr">
                <input name="setendtime" readonly type="text" class="input_text_default small" id="setendtime" autocomplete="off" maxlength="5" value="<if condition="$setmeal['end_time'] neq '0'">{:date('Y-m-d',$setmeal['end_time'])}</if>"/>
<!--                <span style="color: #999999;">格式 yyyy-mm-dd，留空为不限制</span>-->
            </div>
            <div class="fl">简历下载次数:</div>
            <div class="fr">
                <input name="days" readonly type="text" class="input_text_default small" maxlength="50" value="{$setmeal.jl_down_num}"/>
<!--                <span style="color: #999999;">默认为空表示不做修改，0为不限制，如填写3则延长3天，-3则减少3天</span>-->
            </div>
            <div class="fl">简历已下载次数:</div>
            <div class="fr">
                <input name="days" readonly type="text" class="input_text_default small" maxlength="50" value="{$setmeal.jl_yi_down_num}"/>
<!--                <span style="color: #999999;">默认为空表示不做修改，0为不限制，如填写3则延长3天，-3则减少3天</span>-->
            </div>
            <div class="fl">常规职位发布次数:</div>
            <div class="fr">
                <input name="days" readonly type="text" class="input_text_default small" maxlength="50" value="{$setmeal.cg_fa_count}"/>
<!--                <span style="color: #999999;">默认为空表示不做修改，0为不限制，如填写3则延长3天，-3则减少3天</span>-->
            </div>

            <div class="fl">常规职位已发布次数:</div>
            <div class="fr">
                <input name="days" readonly type="text" class="input_text_default small" maxlength="50" value="{$setmeal.cg_yi_fa_count}"/>
<!--                <span style="color: #999999;">默认为空表示不做修改，0为不限制，如填写3则延长3天，-3则减少3天</span>-->
            </div>

            <div class="fl">项目职位发布次数:</div>
            <div class="fr">
                <input name="days" readonly type="text" class="input_text_default small" maxlength="50" value="{$setmeal.xmzc_fa_count}"/>
<!--                <span style="color: #999999;">默认为空表示不做修改，0为不限制，如填写3则延长3天，-3则减少3天</span>-->
            </div>

            <div class="fl">项目职位已发布次数:</div>
            <div class="fr">
                <input name="days" readonly type="text" class="input_text_default small" maxlength="50" value="{$setmeal.xmzc_yi_fa_count}"/>
<!--                <span style="color: #999999;">默认为空表示不做修改，0为不限制，如填写3则延长3天，-3则减少3天</span>-->
            </div>

            <div class="fl">急招职位发布次数:</div>
            <div class="fr">
                <input name="days" readonly type="text" class="input_text_default small" maxlength="50" value="{$setmeal.ji_zhao_fa_count}"/>
<!--                <span style="color: #999999;">默认为空表示不做修改，0为不限制，如填写3则延长3天，-3则减少3天</span>-->
            </div>

            <div class="fl">急招职位已发布次数:</div>
            <div class="fr">
                <input name="days" readonly type="text" class="input_text_default small" maxlength="50" value="{$setmeal.ji_zhao_yi_fa_count}"/>
<!--                <span style="color: #999999;">默认为空表示不做修改，0为不限制，如填写3则延长3天，-3则减少3天</span>-->
            </div>

            <div class="fl">短期职位发布次数:</div>
            <div class="fr">
                <input name="days" readonly type="text" class="input_text_default small" maxlength="50" value="{$setmeal.duan_qi_fa_count}"/>
<!--                <span style="color: #999999;">默认为空表示不做修改，0为不限制，如填写3则延长3天，-3则减少3天</span>-->
            </div>

            <div class="fl">短期职位已发布次数:</div>
            <div class="fr">
                <input name="days" readonly type="text" class="input_text_default small" maxlength="50" value="{$setmeal.duan_qi_yi_fa_count}"/>
<!--                <span style="color: #999999;">默认为空表示不做修改，0为不限制，如填写3则延长3天，-3则减少3天</span>-->
            </div>


            <div class="fl"></div>
<!--            <div class="fr">-->
<!--                <input type="hidden" name="uid"  value="{$company_user.uid}"/>-->
<!--                <input type="hidden" name="_k_v" value="{$Think.get._k_v}">-->
<!--                <input type="button" class="admin_submit" value="确定" id="J_submit" />-->
<!--                <input type="button" class="admin_submit" value="返回" onClick="history.go(-1)"/>-->
<!--            </div>-->
            <div class="clear"></div>
        </form>
    </div>
</notempty>

<div class="toptit">重新开通套餐</div>
<div class="form_main width200">
    <form action="{:U('user_setmeal_set')}" method="post" id="SetForm" name="SetForm" >
        <div class="fl">选择套餐:</div>
        <div class="fr">
            <div class="imgradio">
                <input name="reg_service" type="hidden" value="{:C('qscms_reg_service')}">
                <volist name="givesetmeal" id="list">
                    <div class="radio <eq name='Think.config.qscms_reg_service' value='$key'>select</eq>" data="{$key}" title="{$list}">{$list}</div>
                </volist>
                <div class="clear"></div>
            </div>
        </div>
        <div class="fl"><span style="color:#FF0000">是否已收费:</span></div>
        <div class="fr">
            <div class="imgradio">
                <input name="is_money" type="hidden" value="1">
                <div class="radio yes_money1 select" data="1" title="是">是</div>
                <div class="radio no_money1" data="0" title="否">否</div>
                <div class="clear"></div>
            </div>
        </div>
        <div class="log_amount1">
            <div class="fl"><span style="color:#FF0000">收费金额:</span></div>
            <div class="fr">
                <input name="money" type="text" class="input_text_default small" maxlength="5" value=""/> 元
                <span style="color: #999999;">请填写收费金额</span>
            </div>
        </div>
        <div class="fl"></div>
        <div class="fr">
            <input type="hidden" name="uid"  value="{$company_user.uid}" />
            <input type="hidden" name="_k_v" value="{$Think.get._k_v}">
            <input type="button" class="admin_submit" value="确定" id="J_submit1"/>
            <input type="button" class="admin_submit" value="返回" onClick="history.go(-1)"/>
        </div>
        <div class="clear"></div>
    </form>
</div>

<div class="toptit link_blue">套餐消费明细</div>
<div class="form_main">
    <div class="detail_wrap">
        <div class="list-th">
            <div class="th1">操作时间</div>
            <div class="th3 center" style="width: 380px;">操作说明</div>
            <div class="clear"></div>
        </div>
        <div class="list-data">
            <notempty name="log">
                <volist name="log" id="vo">
                    <div class="list-td">
                        <div class="td1">{:admin_date($vo['log_addtime'])}</div>
                        <div class="td3 center" style="width: 380px;">{$vo['log_value']}</div>
                        <div class="clear"></div>
                    </div>
                </volist>
            <else/>
                <div class="list_empty" style="margin:0">没有任何信息！</div>
            </notempty>

        </div>
    </div>
</div>

</div>
<include file="public:footer"/>
</body>
<script type="text/javascript">
    $(document).ready(function () {
        //日期
        laydate.render({
            elem: '#setendtime' //指定元素
        });
        $(".no_money").click(function(){
            $(".log_amount").hide();
        });
        $(".yes_money").click(function(){
            $(".log_amount").show();
        });
        $(".no_money1").click(function(){
            $(".log_amount1").hide();
        });
        $(".yes_money1").click(function(){
            $(".log_amount1").show();
        });
        $('#J_submit').click(function(){
            var that = $(this);
            if(that.hasClass('disabled')){
                return false;
            }
            that.val('正在保存...').addClass('disabled');
            $.post("{:U('edit')}",$('#EditForm').serialize(),function(result){
                if(result.status==1){
                    disapperTooltip("success", result.msg,function(){
                        location.reload();
                    });
                }else{
                    disapperTooltip("remind", result.msg,function(){
                        that.val('保存').removeClass('disabled');
                    });
                    return false;
                }
            },'json');
        });
        $('#J_submit1').click(function(){
            var that = $(this);
            if(that.hasClass('disabled')){
                return false;
            }
            that.val('正在保存...').addClass('disabled');
            $.post("{:U('user_setmeal_set')}",$('#SetForm').serialize(),function(result){
                if(result.status==1){
                    disapperTooltip("success", result.msg,function(){
                        location.reload();
                    });
                }else{
                    disapperTooltip("remind", result.msg,function(){
                        that.val('保存').removeClass('disabled');
                    });
                    return false;
                }
            },'json');
        });
    });
</script>
</html>